<?php
defined('BASEPATH') OR exit('No direct script access allowed');
/* 
	微信分享JSDK
*/
class Wxshare extends MY_Controller{
	
	public function __construct(){
		parent::__construct();
		$this->load->library('Wechat/wechatjs');
	}
	
	public function get_config(){
		$url = $this->input->get('url');
		$jssign = $this->wechatjs->get_jssign($url);
		if($jssign){
			$this->output_json([
				'data' => $jssign
			], 0);
		}
		$this->output_json();
	}
	
}